package com.jiajia.study.chapter03.frame;

/**
 * <h1>一个线程演示栈帧的调用情况</h1>
 * @author zjiajia
 * @date 2023/11/1 19:42
 */
public class TestFrame {

    public static void main(String[] args) {
        method1(10);
    }

    private static void method1(int x) {
        int y = x + 1;
        Object m = method2();
        System.out.println(m);
    }

    private static Object method2() {
        Object n = new Object();
        return n;
    }
}
